import java.util.Scanner;

public class Triples {
	public static void main (String [] ARGC)
	{
		
		final int MAX_NUM = 99;
		
		int [] arr1 = new int [ MAX_NUM ];
		
		for (int i=0;i<arr1.length;i++)
		{
			arr1[i] = (int)(Math.random()*100);
			System.out.println("Numb:" + arr1[i]);
		}
		

		
		int count=3 ;
		int min_number = whoIsLargest( arr1 [0] , arr1[1] , arr1[2]);
		while ( count < MAX_NUM)
		{
			
			//System.out.println("Numb:" + count);
			int number = whoIsLargest( arr1 [count] , arr1[ ++count ] , arr1[ ++count]);
			System.out.println("NNNN:" + number);
			if( min_number > number)
			{
				min_number =number;
			}
			
			count++;
		}
		
		System.out.println("The Smallest  number in Array "+min_number);
		
		
		
		
		
		
		
	}
	
	public static int whoIsLargest(int num1,int num2,int num3)
	{
		
		int [] arr1 = {num1 , num2 , num3};
		
		int max_number = arr1[0];
		
		for (int i=1;i<3;i++)
		{
			if(max_number < arr1[i])
			{
				max_number = arr1[i];
				
			}
			
		}
		

		return max_number;
		
		
		
	}
	
	
}
